package com.minivision.fdiot.config;

import org.msgpack.MessagePack;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import io.moquette.server.Server;

/**
 * MQTT配置
 * @author hughzhao
 * @2018年3月1日
 */
@Configuration
public class MqttConfig {

  @Bean
  public Server mqttServer(){
    return new Server();
  }
  
  /**
   * msgpack序列化
   * @return
   */
  @Bean
  public MessagePack msgpack() {
    return new MessagePack();
  }
  
}
